{% extends "uddi/controlPanel.html" %}

{% block subContent %}
<h3>Your services</h3>

<div class="center">
<table class="tableServiceList">
<tr>
  <th>Service name</th><th>Results</th><th>Actions</th><th>Download tests</th>
</tr>
  {% for service in services %}
<tr>
  <td>
    {{service.name}} <a href="{{base_url}}service/{{service.id}}/">(view)</a>
  </td>
  <td>
   {{service.percentageOfSuccessfulTests}}
  </td>
  <td>
  <ul>
    <li><a href="{{base_url}}editService/{{service.id}}/" class="edit">edit</a></li>
    <li>
      {% if service.public %}
      <a href="{{base_url}}hideService/{{service.id}}/" class="hide">hide</a></li>
      {% else %}
      <a href="{{base_url}}showService/{{service.id}}/" class="show">show</a></li>
      {% endif %}
    <li><a href="{{base_url}}deleteService/{{service.id}}/" class="delete">delete</a></li>
  </ul>
 </td>
 <td>
  <ul>
    <li><a href="{{base_url}}downtests/xml/{{service.id}}/" class="xml">XML</a></li>
    <li><a href="{{base_url}}downtests/java/{{service.id}}/" class="java">Java</a></li>
  </ul>
 </td>
</tr>
  {% endfor %}
</table>
</div>

<p class="center"><a class="button" href="{{base_url}}newService/">Add a new service</a></p>

{% endblock %}
